<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>

<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.Collection" %>
<%@ page import="org.vectrics.location.Location" %>


<html:form action="/admin/jobs/index" method="post">
	<table width="100%">
		<tr>
			<td valign="TOP">
				<table width="500">
					<tr>
						<td valign="top">
							<font class="formLabelClass">
								&nbsp;Search Words
							</font>
						</td>
						<td valign="top">
							<html:text property="searchPhrase" size="200" styleClass="formEditClass" />
						</td>
					</tr>
					<tr>
						<td valign="top">
							<font class="formLabelClass">
								&nbsp;Function
							</font>
						</td>
						<td valign="top">
							<vectrics:jobFunctionCombo property="functionCode" styleClass="formComboClass" any="true"/>
						</td>
					</tr>
					
					<tr>
						<td valign="top">
							<font class="formLabelClass">
								&nbsp;Location
							</font>
						</td>
						<td valign="top">
							<vectrics:locationCombo property="location" styleClass="formComboClass"/>
						</td>
					</tr>
					<tr>
						<td valign="top">
							<font class="formLabelClass">
								&nbsp;Time Span
							</font>
						</td>
						
						<td valign="top">
							<html:select property="time" styleClass="formComboClass">
								<option value="24">Past 1 Day</option>
								<option selected value="168">Past 7 Days</option>
								<option value="720">Past 1 Month</option>
								<option value="1440">Past 2 Months</option>
								<option value="2160">Past 3 Months</option>
								<option value="2880">Past 4 Months</option>
								<option value="3600">Past 5 Months</option>
								<option value="4320">Past 6 Months</option>
								<option value="6480">Past 9 Months</option>
								<option value="8760">Past 1 Year</option>
								<option value="17520">Past 2 Year</option>
								<option value="43800">Past 5 Year</option>
								<option value="-1">All</option>
							</html:select>
						</td>
					</tr>
					
					<tr>
						<td valign="TOP" align="left"><font class="formLabelClass">Active Status</font></td>
						<td valign="top">
							<html:select property="activeStatus" styleClass="formComboClass">
								<option value="active">Active Only</option>
								<option selected value="inactive">Inactive Only</option>
								<option selected value="all">All</option>
							</html:select>
						</td>
					</tr>
				</table>					
				
				<table width="600">
					<tr>
						<td valign="TOP" align="left" colspan="2">
						    <vectrics:companySelecter />						
						</td>
					</tr>
				</table>					
				
				<table width="500">
					<tr>
						<td valign="TOP" align="left"></td>
						<td valign="TOP" align="left">
							<vectrics:formButton elementId="ok.btn" code="button.ok" phraseCode="button.ok" value="submit" name="submit"/>
						</td>
					</tr>
				</table>
			</td>
			<td valign="TOP" width="50"></td>
			<td valign="TOP">
				<table></table>
			</td>
		</tr>
	</table>

	
</html:form>
